earnings per share calculation